The behaviours are using the class hierarchy of the agents (See \figureref{agents-figure-classdiagram} and \figureref{behavior-figure-behavior-depend}). The behaviours uses the agents in the same way as the ontology.

The behaviours use mostly the ASensor and the AActuator for changing the getting or changing the values the agent contain (See \coderef{emit-message}). Behaviours, which handle messages, are placed into each agent, because the handling of the message is  different from agent to agent. The use of NotUnderstood messages should not be used by every behaviour and everytime each behaviour gets a message that it is not expecting. The misuse of NotUnderstood will slow the hole system, because the message is put into every behaviours queue of message

% Write about how a behavior can use the agents without knowing what the agent is. 